package doxygenxml.compound;

/**********************************************************************************************
 * Copyright (c) 2001-2020 Liquid Technologies Limited. All rights reserved.
 * See www.liquid-technologies.com for product details.
 *
 * Please see products End User License Agreement for distribution permissions.
 *
 * WARNING: THIS FILE IS GENERATED
 * Changes made outside of ##HAND_CODED_BLOCK_START blocks will be overwritten
 *
 * Generation  :  by Liquid XML Data Binder 18.0.5.9988
 * Using Schema: CENSORED
 **********************************************************************************************/

// <summary>
// </summary>
public enum DoxBool {
	Yes,
	No;

	// Converts a DoxBool enumeration to a string (suitable for the XML document)
	public static String DoxBoolToString(doxygenxml.compound.DoxBool enumValue) throws com.liquid_technologies.ltxmllib18.exceptions.LtInvalidValueException {
		switch(enumValue)
		{
		case Yes:
	    	return "yes";
		case No:
	    	return "no";
		default:
	    	throw new com.liquid_technologies.ltxmllib18.exceptions.LtInvalidValueException("Unknown enumeration value for doxygenxml.compound.DoxBool [" + enumValue.toString() + "]");
		}
	}
	
	// 	Converts a string to a DoxBool enumeration
	public static DoxBool DoxBoolFromString(String enumValue) throws com.liquid_technologies.ltxmllib18.exceptions.LtInvalidValueException {
		String enumCollapsedValue = com.liquid_technologies.ltxmllib18.WhitespaceUtils.collapse(enumValue);
		if (enumCollapsedValue.equals("yes"))
			return Yes;
		else if (enumCollapsedValue.equals("no"))
			return No;
		else
			// ##HAND_CODED_BLOCK_START ID="Default Enum doxygenxml.compound.DoxBool"## DO NOT MODIFY ANYTHING OUTSIDE OF THESE TAGS
			throw new com.liquid_technologies.ltxmllib18.exceptions.LtInvalidValueException("Unknown enumeration value for doxygenxml.compound.DoxBool [" + enumValue + "]");
			// ##HAND_CODED_BLOCK_END ID="Default Enum doxygenxml.compound.DoxBool"## DO NOT MODIFY ANYTHING OUTSIDE OF THESE TAGS
	}
}

